/**********************************************************************
  The MIT License (MIT)
  Copyright (c) 2012 sunriseyuen

  Permission is hereby granted, free of charge, to any person obtaining
  a copy of this software and associated documentation files
  (the "Software"), to deal in the Software without restriction,
  including without limitation the rights to use, copy, modify, merge,
  publish, distribute, sublicense, and/or sell copies of the Software,
  and to permit persons to whom the Software is furnished to do so,
  subject to the following conditions:

  The above copyright notice and this permission notice shall be included
  in all copies or substantial portions of the Software.

  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
  DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
  TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH
  THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 ***********************************************************************/

	#define _DEF_CCY_CODE
	#define _ZZDEBUG
	#define _PROJ_DC

	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	

#region Using directives

using System;
using System.Text;
using System.IO;
using System.Xml;
using System.Collections;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Reflection;
using System.Web;
using System.Web.UI;

using Muki.Framework;
using Muki.Framework.UI;
using Muki.Framework.Business;
using Muki.Framework.Util;
using Muki.UserDefine;
using Muki.Entity;
using Dot.StreamObject;

using Dot.Tmpl;
using Dot.Tmpl.Parser;

#endregion

namespace Muki.UserPanel
{

	public class UID02001BV
	{
		public UID02001BV()
		{
		}

		public void setValue()
		{
			

				_lnk_RW_NO=ZZGeneral.XRequest("lnk_RW_NO");
				if (ZZGeneral.XRequest("lnk_UID_CODE_DAT")!="")
				{
					_Wxf = new Wxf();
					_Wxf.Parser(System.Web.HttpUtility.UrlDecode(ZZGeneral.XRequest("lnk_UID_CODE_DAT")));
					_Wxf.Open();

					ZZTrace.WriteToFile(this.APP_PATH+"\\temp\\UID02001B2.js",_Wxf.ToString());
					_lnk_MODE="B";
				}


					_UID02001BEntity.UID_CODE = _Convert.ToString(objZUPRGDTM_UID_CODE.Text);

					_UID02001BEntity.UID_DT = _Convert.ToString(objZUPRGDTM_UID_DT.Text);
					if (_STATUS_DATA["IsPostBack"]=="")
					{
						if (ZZGeneral.XRequest("lnk_ZUPRGDTM_UID_DT")!="")
						{
							_UID02001BEntity.UID_DT = ZZGeneral.XRequest("lnk_ZUPRGDTM_UID_DT");
						}
					}

					_UID02001BEntity.SERIAL_NO = _Convert.ToInt(objZUPRGDTM_SERIAL_NO.Text);

					_UID02001BEntity.TABLE_NAME = _Convert.ToString(objZUPRGDTM_TABLE_NAME.Text);

					_UID02001BEntity.COLUMN_NAME = _Convert.ToString(objZUPRGDTM_COLUMN_NAME.Text);

					_UID02001BEntity.COLUMN_NULLABLE = _Convert.ToBoolean(objZUPRGDTM_COLUMN_NULLABLE.Text);

					_UID02001BEntity.LABEL_ID = _Convert.ToString(objZUPRGDTM_LABEL_ID.Text);

					_UID02001BEntity.UID_ENG_NAME = _Convert.ToString(objVARIABLE_UID_ENG_NAME.Text);

					_UID02001BEntity.UID_CHS_NAME = _Convert.ToString(objVARIABLE_UID_CHS_NAME.Text);

					_UID02001BEntity.BASE_COLUMN_NAME = _Convert.ToString(objZUPRGDTM_BASE_COLUMN_NAME.Text);

					_UID02001BEntity.BASE_TABLE_NAME = _Convert.ToString(objZUPRGDTM_BASE_TABLE_NAME.Text);

					_UID02001BEntity.LNK_COLUMN_NAME = _Convert.ToString(objZUPRGDTM_LNK_COLUMN_NAME.Text);

					_UID02001BEntity.OPT_CODE = _Convert.ToString(objZUPRGDTM_OPT_CODE.Text);

					_UID02001BEntity.RELY_VERFY = _Convert.ToString(objZUPRGDTM_RELY_VERFY.Text);

					_UID02001BEntity.RELY_DEFAULT = _Convert.ToString(objZUPRGDTM_RELY_DEFAULT.Text);

					_UID02001BEntity.RELY_VIEW = _Convert.ToString(objZUPRGDTM_RELY_VIEW.Text);

					_UID02001BEntity.NEW_LINE = _Convert.ToBoolean(objZUPRGDTM_NEW_LINE.Text);

					_UID02001BEntity.NEW_CELL = _Convert.ToBoolean(objZUPRGDTM_NEW_CELL.Text);

					_UID02001BEntity.ROWS_SPAN = _Convert.ToInt(objZUPRGDTM_ROWS_SPAN.Text);

					_UID02001BEntity.COLS_SPAN = _Convert.ToInt(objZUPRGDTM_COLS_SPAN.Text);

					_UID02001BEntity.ACTIVE_BIT = _Convert.ToBoolean(objZUPRGDTM_ACTIVE_BIT.Text);

					_UID02001BEntity.LINE_REVEAL = _Convert.ToBoolean(objZUPRGDTM_LINE_REVEAL.Text);

		}

		public void getValue()
		{
					objWebPanels["UID02001B","PK_UID_DT"]=_Convert.ToString(_UID02001BEntity.UID_DT);

					objZUPRGDTM_UID_CODE.Text=_Convert.ToString(_UID02001BEntity.UID_CODE);
					objZUPRGDTM_UID_DT.Text=_Convert.ToString(_UID02001BEntity.UID_DT);
					objZUPRGDTM_SERIAL_NO.Text=_Convert.ToString(_UID02001BEntity.SERIAL_NO);
					objZUPRGDTM_TABLE_NAME.Text=_Convert.ToString(_UID02001BEntity.TABLE_NAME);
					objZUPRGDTM_COLUMN_NAME.Text=_Convert.ToString(_UID02001BEntity.COLUMN_NAME);
					objZUPRGDTM_COLUMN_NULLABLE.Text=_Convert.ToString(_UID02001BEntity.COLUMN_NULLABLE);
					objZUPRGDTM_LABEL_ID.Text=_Convert.ToString(_UID02001BEntity.LABEL_ID);
					objVARIABLE_UID_ENG_NAME.Text=_Convert.ToString(_UID02001BEntity.UID_ENG_NAME);
					objVARIABLE_UID_CHS_NAME.Text=_Convert.ToString(_UID02001BEntity.UID_CHS_NAME);
					objZUPRGDTM_BASE_COLUMN_NAME.Text=_Convert.ToString(_UID02001BEntity.BASE_COLUMN_NAME);
					objZUPRGDTM_BASE_TABLE_NAME.Text=_Convert.ToString(_UID02001BEntity.BASE_TABLE_NAME);
					objZUPRGDTM_LNK_COLUMN_NAME.Text=_Convert.ToString(_UID02001BEntity.LNK_COLUMN_NAME);
					objZUPRGDTM_OPT_CODE.Text=_Convert.ToString(_UID02001BEntity.OPT_CODE);
					objZUPRGDTM_RELY_VERFY.Text=_Convert.ToString(_UID02001BEntity.RELY_VERFY);
					objZUPRGDTM_RELY_DEFAULT.Text=_Convert.ToString(_UID02001BEntity.RELY_DEFAULT);
					objZUPRGDTM_RELY_VIEW.Text=_Convert.ToString(_UID02001BEntity.RELY_VIEW);
					objZUPRGDTM_NEW_LINE.Text=_Convert.ToString(_UID02001BEntity.NEW_LINE);
					objZUPRGDTM_NEW_CELL.Text=_Convert.ToString(_UID02001BEntity.NEW_CELL);
					objZUPRGDTM_ROWS_SPAN.Text=_Convert.ToString(_UID02001BEntity.ROWS_SPAN);
					objZUPRGDTM_COLS_SPAN.Text=_Convert.ToString(_UID02001BEntity.COLS_SPAN);
					objZUPRGDTM_ACTIVE_BIT.Text=_Convert.ToString(_UID02001BEntity.ACTIVE_BIT);
					objZUPRGDTM_LINE_REVEAL.Text=_Convert.ToString(_UID02001BEntity.LINE_REVEAL);

				objZUPRGDTM_USECURITY_CODE1.Text=_UID02001BEntity.USECURITY_CODE1;
							objZUPRGDTM_USECURITY_CODE2.Text=_UID02001BEntity.USECURITY_CODE2;
							objZUPRGDTM_USECURITY_CODE3.Text=_UID02001BEntity.USECURITY_CODE3;
							objZUPRGDTM_USECURITY_CODE4.Text=_UID02001BEntity.USECURITY_CODE4;
							objZUPRGDTM_USECURITY_CODE5.Text=_UID02001BEntity.USECURITY_CODE5;
							objZUPRGDTM_USECURITY_CODE6.Text=_UID02001BEntity.USECURITY_CODE6;
			
			objZUPRGDTM_USECURITY_RIGHT.Text = _UID02001BEntity.USECURITY_RIGHT.ToString();
			objZUPRGDTM_UZADD_DATE.Text      = _UID02001BEntity.UZADD_DATE;
			objZUPRGDTM_UZADD_USER.Text      = _UID02001BEntity.UZADD_USER;
			objZUPRGDTM_UZCHG_DATE.Text      = _UID02001BEntity.UZCHG_DATE;
			objZUPRGDTM_UZCHG_USER.Text      = _UID02001BEntity.UZCHG_USER;
		}

		public void OnInit(HttpContext  objHttpContext)		
		{

			this.UID_CODE = "UID02001B";

			this.DbName = ZZGeneral.DbName();

			_STATUS_DATA.OnInit(objHttpContext);

			_STATUS_DATA["lnk_UID_CODE"] = this.UID_CODE;
			_STATUS_DATA["ZZUSQL_CODE"] = "QID02001B";

			this.ZZEventOpts        = _STATUS_DATA["ZZEventOpts"];
			this.ZZLOGON_SSD        = _STATUS_DATA["ZZLOGON_SSD"];
			this.ZZLOGON_LANG       = _STATUS_DATA["ZZLOGON_LANG"];
			this.ZZEventStatus      = _STATUS_DATA["ZZEventStatus"];
			this.ZZEventStage       = _STATUS_DATA["ZZEventStage"];
			this.ZZEventArgs        = _STATUS_DATA["ZZEventArgs"];
			this.ZZVIEW_STATUS_CODE = _STATUS_DATA["ZZVIEW_STATUS_CODE"];
			this.ZZVIEW_STAGEU_CODE = _STATUS_DATA["ZZVIEW_STAGEU_CODE"];
			this.ZZLOGON_MODE       = _STATUS_DATA["ZZLOGON_MODE"];
			this.ZZVIEW_MODE_CODE   = _STATUS_DATA["ZZVIEW_MODE_CODE"];

			ZZTrace.Debug(ZFILE_NAME,"...123456...---"+this.ZZLOGON_SSD);

			ZZTrace.Debug(ZFILE_NAME,".ZZLOGON_MODE-"+this.ZZLOGON_MODE);

			this.Trans = new StreamContext(this.DbName);

			XLiveManagement oXLiveManagement=XLiveManagement.getInstance();
			oXLiveManagement.DbName=this.DbName;
			this.ZZLOGON_ID=oXLiveManagement[this.ZZLOGON_SSD].getValue("LOGON_ID");
			
			if (this.ZZLOGON_LANG=="")
			{
				this.ZZLOGON_LANG=oXLiveManagement[this.ZZLOGON_SSD].getValue("LOGON_LANG");
			}

			ZZTrace.Debug(ZFILE_NAME,"...123456...---"+this.ZZLOGON_LANG);

			_STATUS_DATA["ZZLOGON_LANG"] = this.ZZLOGON_LANG;

			_Convert.ZZLOGON_SSD = this.ZZLOGON_SSD;
			_Convert.Trans       = this.Trans;

			_Captions             = new ZZCaptions();
			_Captions.DbName      = this.DbName;
			_Captions.ZZLOGON_LANG  = this.ZZLOGON_LANG;
			_Captions.ZZLOGON_SSD = this.ZZLOGON_SSD;


			_DocsPermission.Trans = this.Trans;

			dbTab objdbTab       = new dbTab();
			objdbTab.UID_CODE    = this.UID_CODE;
			objdbTab.Trans       = this.Trans;
			objdbTab.ZZLOGON_LANG  = this.ZZLOGON_LANG;
			objdbTab.ZZLOGON_SSD = this.ZZLOGON_SSD;
			objdbTab.Create();

			objWebPanels=objdbTab.Panels;

			oWindow.AddPanels(objWebPanels);
			oWindow.Trans       = this.Trans;
			oWindow.ZZLOGON_SSD = this.ZZLOGON_SSD;
			oWindow.ZZLOGON_LANG  = this.ZZLOGON_LANG;

			Muki.Framework.ZZSetting oZZSetting = new Muki.Framework.ZZSetting();
			oZZSetting.Trans=this.Trans;

#region Quick Search

			_WebOption.Name             = "Txt_Quick_Field";
			_WebOption.STATUS_CODE      = "VIEW";
			_WebOption.VIEW_STATUS_CODE = "VIEW";


			bool ZZLOOKUP_ANY_COLUMN = oZZSetting.getBoolean("ZZLOOKUP_ANY_COLUMN", "YES");
			if (ZZLOOKUP_ANY_COLUMN)
			{
				_WebOption.Add("ZZLOOKUP_ANY_COLUMN",_Captions.Caption(this.UID_CODE,"lbl_ZZLOOKUP_ANY_COLUMN"));
				_WebOption.STATUS_CODE = "HIDDEN";
				_WebOption.VIEW_STAGEU_CODE = "HIDDEN";
			}

					_WebOption.Add("ZUPRGDTM.UID_CODE",_Captions.Caption(this.UID_CODE,"lbl_UID0_CODE"));
					_WebOption.Add("ZUPRGDTM.UID_DT",_Captions.Caption(this.UID_CODE,"lbl_UID_DT"));
					_WebOption.Add("ZUPRGDTM.TABLE_NAME",_Captions.Caption(this.UID_CODE,"lbl_TABLE_NAME"));
					_WebOption.Add("ZUPRGDTM.COLUMN_NAME",_Captions.Caption(this.UID_CODE,"lbl_COLUMN_NAME"));
					_WebOption.Add("ZUPRGDTM.LABEL_ID",_Captions.Caption(this.UID_CODE,"lbl_LABEL_ID"));
					_WebOption.Add("ZUPRGDTM.BASE_COLUMN_NAME",_Captions.Caption(this.UID_CODE,"lbl_BASE_COLUMN_NAME"));
					_WebOption.Add("ZUPRGDTM.BASE_TABLE_NAME",_Captions.Caption(this.UID_CODE,"lbl_BASE_TABLE_NAME"));
					_WebOption.Add("ZUPRGDTM.LNK_COLUMN_NAME",_Captions.Caption(this.UID_CODE,"lbl_LNK_COLUMN_NAME"));
					_WebOption.Add("ZUPRGDTM.OPT_CODE",_Captions.Caption(this.UID_CODE,"lbl_OPT_CODE"));
					_WebOption.Add("ZUPRGDTM.RELY_VERFY",_Captions.Caption(this.UID_CODE,"lbl_RELY_VERFY"));
					_WebOption.Add("ZUPRGDTM.RELY_DEFAULT",_Captions.Caption(this.UID_CODE,"lbl_RELY_DEFAULT"));
					_WebOption.Add("ZUPRGDTM.RELY_VIEW",_Captions.Caption(this.UID_CODE,"lbl_RELY_VIEW"));

			_WebLookup.UGET_CODE   = "QDD02001B";
			_WebLookup.Trans       = this.Trans;
			_WebLookup.DbName      = this.DbName;
			_WebLookup.ZZLOGON_LANG  = this.ZZLOGON_LANG;
			_WebLookup.ZZLOGON_SSD = this.ZZLOGON_SSD;
			_WebLookup.XWebOption  = _WebOption;


				oWindow.AddLookUp(_WebLookup);

			XOption objXOption     = new XOption();
			objXOption.UID_CODE    = this.UID_CODE;
			objXOption.Trans       = this.Trans;

			XDepend objXDepend     = new XDepend();
			objXDepend.UID_CODE    = this.UID_CODE;
			objXDepend.Trans       = this.Trans;
			objXDepend.ZZLOGON_LANG  = this.ZZLOGON_LANG;
			objXDepend.ZZLOGON_SSD = this.ZZLOGON_SSD;

			ZZCDF _ZZCDF      = new ZZCDF();
			_ZZCDF.UID_CODE   = this.UID_CODE;
			_ZZCDF.Trans      = this.Trans;

#endregion

			oXForm             = new XForm();
			oXForm.UID_CODE    = this.UID_CODE;
			oXForm.DbName      = this.DbName;
			oXForm.ZZLOGON_LANG  = this.ZZLOGON_LANG;
			oXForm.ZZLOGON_SSD = this.ZZLOGON_SSD;


			//oXForm.Trans     = this.Trans;

#region XForm element


#region ZUPRGDTM_UID_CODE
				objZUPRGDTM_UID_CODE.Name          = "Txt_ZUPRGDTM_UID_CODE";
				objZUPRGDTM_UID_CODE.OnBlurEvents  = "";
				objZUPRGDTM_UID_CODE.Length        = 12;
				objZUPRGDTM_UID_CODE.Height        = 0;
				objZUPRGDTM_UID_CODE.COLUMN_SCALE = 0;
				objZUPRGDTM_UID_CODE.STATUS_CODE   = "";
				objZUPRGDTM_UID_CODE.Compulsory    = false;
				objZUPRGDTM_UID_CODE.Caption       = _Captions.Caption(this.UID_CODE,"lbl_UID0_CODE");
				objZUPRGDTM_UID_CODE.COLSPAN       = 1;
				objZUPRGDTM_UID_CODE.ROWSPAN       = 1;
				objZUPRGDTM_UID_CODE.Index         = 1000;
				objZUPRGDTM_UID_CODE.NEW_LINE      = true;
				objZUPRGDTM_UID_CODE.NEW_CELL      = true;
				objZUPRGDTM_UID_CODE.LINE_REVEAL   = false;


				oXForm.AddObject(objZUPRGDTM_UID_CODE);
				oWindow.Components.Add(objZUPRGDTM_UID_CODE);
				


#endregion //ZUPRGDTM_UID_CODE


#region ZUPRGDTM_UID_DT
				objZUPRGDTM_UID_DT.Name          = "Txt_ZUPRGDTM_UID_DT";
				objZUPRGDTM_UID_DT.OnBlurEvents  = "";
				objZUPRGDTM_UID_DT.Length        = 18;
				objZUPRGDTM_UID_DT.Height        = 0;
				objZUPRGDTM_UID_DT.COLUMN_SCALE = 0;
				objZUPRGDTM_UID_DT.STATUS_CODE   = "HIDDEN";
				objZUPRGDTM_UID_DT.Compulsory    = false;
				objZUPRGDTM_UID_DT.Caption       = _Captions.Caption(this.UID_CODE,"lbl_UID_DT");
				objZUPRGDTM_UID_DT.COLSPAN       = 1;
				objZUPRGDTM_UID_DT.ROWSPAN       = 1;
				objZUPRGDTM_UID_DT.Index         = 1010;
				objZUPRGDTM_UID_DT.NEW_LINE      = true;
				objZUPRGDTM_UID_DT.NEW_CELL      = true;
				objZUPRGDTM_UID_DT.LINE_REVEAL   = false;


				oXForm.AddObject(objZUPRGDTM_UID_DT);
				oWindow.Components.Add(objZUPRGDTM_UID_DT);
				


#endregion //ZUPRGDTM_UID_DT


#region ZUPRGDTM_SERIAL_NO
				objZUPRGDTM_SERIAL_NO.Name          = "Txt_ZUPRGDTM_SERIAL_NO";
				objZUPRGDTM_SERIAL_NO.OnBlurEvents  = "";
				objZUPRGDTM_SERIAL_NO.Length        = 4;
				objZUPRGDTM_SERIAL_NO.Height        = 0;
				objZUPRGDTM_SERIAL_NO.COLUMN_SCALE = 0;
				objZUPRGDTM_SERIAL_NO.STATUS_CODE   = "";
				objZUPRGDTM_SERIAL_NO.Compulsory    = false;
				objZUPRGDTM_SERIAL_NO.Caption       = _Captions.Caption(this.UID_CODE,"lbl_SERIAL_NO");
				objZUPRGDTM_SERIAL_NO.COLSPAN       = 1;
				objZUPRGDTM_SERIAL_NO.ROWSPAN       = 1;
				objZUPRGDTM_SERIAL_NO.Index         = 1020;
				objZUPRGDTM_SERIAL_NO.NEW_LINE      = false;
				objZUPRGDTM_SERIAL_NO.NEW_CELL      = true;
				objZUPRGDTM_SERIAL_NO.LINE_REVEAL   = false;


				oXForm.AddObject(objZUPRGDTM_SERIAL_NO);
				oWindow.Components.Add(objZUPRGDTM_SERIAL_NO);
				


#endregion //ZUPRGDTM_SERIAL_NO


#region ZUPRGDTM_TABLE_NAME
				objZUPRGDTM_TABLE_NAME.Name          = "Txt_ZUPRGDTM_TABLE_NAME";
				objZUPRGDTM_TABLE_NAME.OnBlurEvents  = "";
				objZUPRGDTM_TABLE_NAME.Length        = 20;
				objZUPRGDTM_TABLE_NAME.Height        = 0;
				objZUPRGDTM_TABLE_NAME.COLUMN_SCALE = 0;
				objZUPRGDTM_TABLE_NAME.STATUS_CODE   = "";
				objZUPRGDTM_TABLE_NAME.Compulsory    = false;
				objZUPRGDTM_TABLE_NAME.Caption       = _Captions.Caption(this.UID_CODE,"lbl_TABLE_NAME");
				objZUPRGDTM_TABLE_NAME.COLSPAN       = 1;
				objZUPRGDTM_TABLE_NAME.ROWSPAN       = 1;
				objZUPRGDTM_TABLE_NAME.Index         = 1030;
				objZUPRGDTM_TABLE_NAME.NEW_LINE      = true;
				objZUPRGDTM_TABLE_NAME.NEW_CELL      = true;
				objZUPRGDTM_TABLE_NAME.LINE_REVEAL   = false;


				oXForm.AddObject(objZUPRGDTM_TABLE_NAME);
				oWindow.Components.Add(objZUPRGDTM_TABLE_NAME);
				


#endregion //ZUPRGDTM_TABLE_NAME


#region ZUPRGDTM_COLUMN_NAME
				objZUPRGDTM_COLUMN_NAME.Name          = "Txt_ZUPRGDTM_COLUMN_NAME";
				objZUPRGDTM_COLUMN_NAME.OnBlurEvents  = "";
				objZUPRGDTM_COLUMN_NAME.Length        = 20;
				objZUPRGDTM_COLUMN_NAME.Height        = 0;
				objZUPRGDTM_COLUMN_NAME.COLUMN_SCALE = 0;
				objZUPRGDTM_COLUMN_NAME.STATUS_CODE   = "ADDNEW,UPDATE";
				objZUPRGDTM_COLUMN_NAME.Compulsory    = false;
				objZUPRGDTM_COLUMN_NAME.Caption       = _Captions.Caption(this.UID_CODE,"lbl_COLUMN_NAME");
				objZUPRGDTM_COLUMN_NAME.COLSPAN       = 1;
				objZUPRGDTM_COLUMN_NAME.ROWSPAN       = 1;
				objZUPRGDTM_COLUMN_NAME.Index         = 1040;
				objZUPRGDTM_COLUMN_NAME.NEW_LINE      = false;
				objZUPRGDTM_COLUMN_NAME.NEW_CELL      = true;
				objZUPRGDTM_COLUMN_NAME.LINE_REVEAL   = false;


				oXForm.AddObject(objZUPRGDTM_COLUMN_NAME);
				oWindow.Components.Add(objZUPRGDTM_COLUMN_NAME);
				


#endregion //ZUPRGDTM_COLUMN_NAME


#region ZUPRGDTM_COLUMN_NULLABLE
				objZUPRGDTM_COLUMN_NULLABLE.Name          = "Txt_ZUPRGDTM_COLUMN_NULLABLE";
				objZUPRGDTM_COLUMN_NULLABLE.OnBlurEvents  = "";
				objZUPRGDTM_COLUMN_NULLABLE.Length        = 0;
				objZUPRGDTM_COLUMN_NULLABLE.Height        = 0;
				objZUPRGDTM_COLUMN_NULLABLE.COLUMN_SCALE = 0;
				objZUPRGDTM_COLUMN_NULLABLE.STATUS_CODE   = "ADDNEW,UPDATE";
				objZUPRGDTM_COLUMN_NULLABLE.Compulsory    = false;
				objZUPRGDTM_COLUMN_NULLABLE.Caption       = _Captions.Caption(this.UID_CODE,"lbl_COLUMN_NULLABLE");
				objZUPRGDTM_COLUMN_NULLABLE.COLSPAN       = 1;
				objZUPRGDTM_COLUMN_NULLABLE.ROWSPAN       = 1;
				objZUPRGDTM_COLUMN_NULLABLE.Index         = 1050;
				objZUPRGDTM_COLUMN_NULLABLE.NEW_LINE      = true;
				objZUPRGDTM_COLUMN_NULLABLE.NEW_CELL      = true;
				objZUPRGDTM_COLUMN_NULLABLE.LINE_REVEAL   = false;


				oXForm.AddObject(objZUPRGDTM_COLUMN_NULLABLE);
				oWindow.Components.Add(objZUPRGDTM_COLUMN_NULLABLE);
				


#endregion //ZUPRGDTM_COLUMN_NULLABLE


#region ZUPRGDTM_LABEL_ID
				objZUPRGDTM_LABEL_ID.Name          = "Txt_ZUPRGDTM_LABEL_ID";
				objZUPRGDTM_LABEL_ID.OnBlurEvents  = "";
				objZUPRGDTM_LABEL_ID.Length        = 20;
				objZUPRGDTM_LABEL_ID.Height        = 0;
				objZUPRGDTM_LABEL_ID.COLUMN_SCALE = 0;
				objZUPRGDTM_LABEL_ID.STATUS_CODE   = "";
				objZUPRGDTM_LABEL_ID.Compulsory    = false;
				objZUPRGDTM_LABEL_ID.Caption       = _Captions.Caption(this.UID_CODE,"lbl_LABEL_ID");
				objZUPRGDTM_LABEL_ID.COLSPAN       = 1;
				objZUPRGDTM_LABEL_ID.ROWSPAN       = 1;
				objZUPRGDTM_LABEL_ID.Index         = 1060;
				objZUPRGDTM_LABEL_ID.NEW_LINE      = false;
				objZUPRGDTM_LABEL_ID.NEW_CELL      = true;
				objZUPRGDTM_LABEL_ID.LINE_REVEAL   = false;


				oXForm.AddObject(objZUPRGDTM_LABEL_ID);
				oWindow.Components.Add(objZUPRGDTM_LABEL_ID);
				


#endregion //ZUPRGDTM_LABEL_ID


#region VARIABLE_UID_ENG_NAME
				objVARIABLE_UID_ENG_NAME.Name          = "Txt_VARIABLE_UID_ENG_NAME";
				objVARIABLE_UID_ENG_NAME.OnBlurEvents  = "";
				objVARIABLE_UID_ENG_NAME.Length        = 40;
				objVARIABLE_UID_ENG_NAME.Height        = 0;
				objVARIABLE_UID_ENG_NAME.COLUMN_SCALE = 0;
				objVARIABLE_UID_ENG_NAME.STATUS_CODE   = "ADDNEW,UPDATE";
				objVARIABLE_UID_ENG_NAME.Compulsory    = false;
				objVARIABLE_UID_ENG_NAME.Caption       = _Captions.Caption(this.UID_CODE,"lbl_UID_ENG_NAME");
				objVARIABLE_UID_ENG_NAME.COLSPAN       = 4;
				objVARIABLE_UID_ENG_NAME.ROWSPAN       = 1;
				objVARIABLE_UID_ENG_NAME.Index         = 1070;
				objVARIABLE_UID_ENG_NAME.NEW_LINE      = true;
				objVARIABLE_UID_ENG_NAME.NEW_CELL      = true;
				objVARIABLE_UID_ENG_NAME.LINE_REVEAL   = false;


				oXForm.AddObject(objVARIABLE_UID_ENG_NAME);
				oWindow.Components.Add(objVARIABLE_UID_ENG_NAME);
				


#endregion //VARIABLE_UID_ENG_NAME


#region VARIABLE_UID_CHS_NAME
				objVARIABLE_UID_CHS_NAME.Name          = "Txt_VARIABLE_UID_CHS_NAME";
				objVARIABLE_UID_CHS_NAME.OnBlurEvents  = "";
				objVARIABLE_UID_CHS_NAME.Length        = 40;
				objVARIABLE_UID_CHS_NAME.Height        = 0;
				objVARIABLE_UID_CHS_NAME.COLUMN_SCALE = 0;
				objVARIABLE_UID_CHS_NAME.STATUS_CODE   = "ADDNEW,UPDATE";
				objVARIABLE_UID_CHS_NAME.Compulsory    = false;
				objVARIABLE_UID_CHS_NAME.Caption       = _Captions.Caption(this.UID_CODE,"lbl_UID_CHS_NAME");
				objVARIABLE_UID_CHS_NAME.COLSPAN       = 4;
				objVARIABLE_UID_CHS_NAME.ROWSPAN       = 1;
				objVARIABLE_UID_CHS_NAME.Index         = 1080;
				objVARIABLE_UID_CHS_NAME.NEW_LINE      = true;
				objVARIABLE_UID_CHS_NAME.NEW_CELL      = true;
				objVARIABLE_UID_CHS_NAME.LINE_REVEAL   = false;


				oXForm.AddObject(objVARIABLE_UID_CHS_NAME);
				oWindow.Components.Add(objVARIABLE_UID_CHS_NAME);
				


#endregion //VARIABLE_UID_CHS_NAME


#region ZUPRGDTM_BASE_COLUMN_NAME
				objZUPRGDTM_BASE_COLUMN_NAME.Name          = "Txt_ZUPRGDTM_BASE_COLUMN_NAME";
				objZUPRGDTM_BASE_COLUMN_NAME.OnBlurEvents  = "";
				objZUPRGDTM_BASE_COLUMN_NAME.Length        = 20;
				objZUPRGDTM_BASE_COLUMN_NAME.Height        = 0;
				objZUPRGDTM_BASE_COLUMN_NAME.COLUMN_SCALE = 0;
				objZUPRGDTM_BASE_COLUMN_NAME.STATUS_CODE   = "ADDNEW,UPDATE";
				objZUPRGDTM_BASE_COLUMN_NAME.Compulsory    = false;
				objZUPRGDTM_BASE_COLUMN_NAME.Caption       = _Captions.Caption(this.UID_CODE,"lbl_BASE_COLUMN_NAME");
				objZUPRGDTM_BASE_COLUMN_NAME.COLSPAN       = 1;
				objZUPRGDTM_BASE_COLUMN_NAME.ROWSPAN       = 1;
				objZUPRGDTM_BASE_COLUMN_NAME.Index         = 1090;
				objZUPRGDTM_BASE_COLUMN_NAME.NEW_LINE      = true;
				objZUPRGDTM_BASE_COLUMN_NAME.NEW_CELL      = true;
				objZUPRGDTM_BASE_COLUMN_NAME.LINE_REVEAL   = false;


				oXForm.AddObject(objZUPRGDTM_BASE_COLUMN_NAME);
				oWindow.Components.Add(objZUPRGDTM_BASE_COLUMN_NAME);
				


#endregion //ZUPRGDTM_BASE_COLUMN_NAME


#region ZUPRGDTM_BASE_TABLE_NAME
				objZUPRGDTM_BASE_TABLE_NAME.Name          = "Txt_ZUPRGDTM_BASE_TABLE_NAME";
				objZUPRGDTM_BASE_TABLE_NAME.OnBlurEvents  = "";
				objZUPRGDTM_BASE_TABLE_NAME.Length        = 20;
				objZUPRGDTM_BASE_TABLE_NAME.Height        = 0;
				objZUPRGDTM_BASE_TABLE_NAME.COLUMN_SCALE = 0;
				objZUPRGDTM_BASE_TABLE_NAME.STATUS_CODE   = "ADDNEW,UPDATE";
				objZUPRGDTM_BASE_TABLE_NAME.Compulsory    = false;
				objZUPRGDTM_BASE_TABLE_NAME.Caption       = _Captions.Caption(this.UID_CODE,"lbl_BASE_TABLE_NAME");
				objZUPRGDTM_BASE_TABLE_NAME.COLSPAN       = 1;
				objZUPRGDTM_BASE_TABLE_NAME.ROWSPAN       = 1;
				objZUPRGDTM_BASE_TABLE_NAME.Index         = 1100;
				objZUPRGDTM_BASE_TABLE_NAME.NEW_LINE      = false;
				objZUPRGDTM_BASE_TABLE_NAME.NEW_CELL      = true;
				objZUPRGDTM_BASE_TABLE_NAME.LINE_REVEAL   = false;


				oXForm.AddObject(objZUPRGDTM_BASE_TABLE_NAME);
				oWindow.Components.Add(objZUPRGDTM_BASE_TABLE_NAME);
				


#endregion //ZUPRGDTM_BASE_TABLE_NAME


#region ZUPRGDTM_LNK_COLUMN_NAME
				objZUPRGDTM_LNK_COLUMN_NAME.Name          = "Txt_ZUPRGDTM_LNK_COLUMN_NAME";
				objZUPRGDTM_LNK_COLUMN_NAME.OnBlurEvents  = "";
				objZUPRGDTM_LNK_COLUMN_NAME.Length        = 20;
				objZUPRGDTM_LNK_COLUMN_NAME.Height        = 0;
				objZUPRGDTM_LNK_COLUMN_NAME.COLUMN_SCALE = 0;
				objZUPRGDTM_LNK_COLUMN_NAME.STATUS_CODE   = "ADDNEW,UPDATE";
				objZUPRGDTM_LNK_COLUMN_NAME.Compulsory    = false;
				objZUPRGDTM_LNK_COLUMN_NAME.Caption       = _Captions.Caption(this.UID_CODE,"lbl_LNK_COLUMN_NAME");
				objZUPRGDTM_LNK_COLUMN_NAME.COLSPAN       = 1;
				objZUPRGDTM_LNK_COLUMN_NAME.ROWSPAN       = 1;
				objZUPRGDTM_LNK_COLUMN_NAME.Index         = 1110;
				objZUPRGDTM_LNK_COLUMN_NAME.NEW_LINE      = true;
				objZUPRGDTM_LNK_COLUMN_NAME.NEW_CELL      = true;
				objZUPRGDTM_LNK_COLUMN_NAME.LINE_REVEAL   = false;


				oXForm.AddObject(objZUPRGDTM_LNK_COLUMN_NAME);
				oWindow.Components.Add(objZUPRGDTM_LNK_COLUMN_NAME);
				


#endregion //ZUPRGDTM_LNK_COLUMN_NAME


#region ZUPRGDTM_OPT_CODE
				objZUPRGDTM_OPT_CODE.Name          = "Txt_ZUPRGDTM_OPT_CODE";
				objZUPRGDTM_OPT_CODE.OnBlurEvents  = "";
				objZUPRGDTM_OPT_CODE.Length        = 20;
				objZUPRGDTM_OPT_CODE.Height        = 0;
				objZUPRGDTM_OPT_CODE.COLUMN_SCALE = 0;
				objZUPRGDTM_OPT_CODE.STATUS_CODE   = "ADDNEW,UPDATE";
				objZUPRGDTM_OPT_CODE.Compulsory    = false;
				objZUPRGDTM_OPT_CODE.Caption       = _Captions.Caption(this.UID_CODE,"lbl_OPT_CODE");
				objZUPRGDTM_OPT_CODE.COLSPAN       = 1;
				objZUPRGDTM_OPT_CODE.ROWSPAN       = 1;
				objZUPRGDTM_OPT_CODE.Index         = 1120;
				objZUPRGDTM_OPT_CODE.NEW_LINE      = false;
				objZUPRGDTM_OPT_CODE.NEW_CELL      = true;
				objZUPRGDTM_OPT_CODE.LINE_REVEAL   = false;


				oXForm.AddObject(objZUPRGDTM_OPT_CODE);
				oWindow.Components.Add(objZUPRGDTM_OPT_CODE);
				


#endregion //ZUPRGDTM_OPT_CODE


#region ZUPRGDTM_RELY_VERFY
				objZUPRGDTM_RELY_VERFY.Name          = "Txt_ZUPRGDTM_RELY_VERFY";
				objZUPRGDTM_RELY_VERFY.OnBlurEvents  = "";
				objZUPRGDTM_RELY_VERFY.Length        = 12;
				objZUPRGDTM_RELY_VERFY.Height        = 0;
				objZUPRGDTM_RELY_VERFY.COLUMN_SCALE = 0;
				objZUPRGDTM_RELY_VERFY.STATUS_CODE   = "ADDNEW,UPDATE";
				objZUPRGDTM_RELY_VERFY.Compulsory    = false;
				objZUPRGDTM_RELY_VERFY.Caption       = _Captions.Caption(this.UID_CODE,"lbl_RELY_VERFY");
				objZUPRGDTM_RELY_VERFY.COLSPAN       = 1;
				objZUPRGDTM_RELY_VERFY.ROWSPAN       = 1;
				objZUPRGDTM_RELY_VERFY.Index         = 1140;
				objZUPRGDTM_RELY_VERFY.NEW_LINE      = true;
				objZUPRGDTM_RELY_VERFY.NEW_CELL      = true;
				objZUPRGDTM_RELY_VERFY.LINE_REVEAL   = false;


				oXForm.AddObject(objZUPRGDTM_RELY_VERFY);
				oWindow.Components.Add(objZUPRGDTM_RELY_VERFY);
				


#endregion //ZUPRGDTM_RELY_VERFY


#region ZUPRGDTM_RELY_DEFAULT
				objZUPRGDTM_RELY_DEFAULT.Name          = "Txt_ZUPRGDTM_RELY_DEFAULT";
				objZUPRGDTM_RELY_DEFAULT.OnBlurEvents  = "";
				objZUPRGDTM_RELY_DEFAULT.Length        = 12;
				objZUPRGDTM_RELY_DEFAULT.Height        = 0;
				objZUPRGDTM_RELY_DEFAULT.COLUMN_SCALE = 0;
				objZUPRGDTM_RELY_DEFAULT.STATUS_CODE   = "ADDNEW,UPDATE";
				objZUPRGDTM_RELY_DEFAULT.Compulsory    = false;
				objZUPRGDTM_RELY_DEFAULT.Caption       = _Captions.Caption(this.UID_CODE,"lbl_RELY_DEFAULT");
				objZUPRGDTM_RELY_DEFAULT.COLSPAN       = 1;
				objZUPRGDTM_RELY_DEFAULT.ROWSPAN       = 1;
				objZUPRGDTM_RELY_DEFAULT.Index         = 1150;
				objZUPRGDTM_RELY_DEFAULT.NEW_LINE      = false;
				objZUPRGDTM_RELY_DEFAULT.NEW_CELL      = true;
				objZUPRGDTM_RELY_DEFAULT.LINE_REVEAL   = false;


				oXForm.AddObject(objZUPRGDTM_RELY_DEFAULT);
				oWindow.Components.Add(objZUPRGDTM_RELY_DEFAULT);
				


#endregion //ZUPRGDTM_RELY_DEFAULT


#region ZUPRGDTM_RELY_VIEW
				objZUPRGDTM_RELY_VIEW.Name          = "Txt_ZUPRGDTM_RELY_VIEW";
				objZUPRGDTM_RELY_VIEW.OnBlurEvents  = "";
				objZUPRGDTM_RELY_VIEW.Length        = 12;
				objZUPRGDTM_RELY_VIEW.Height        = 0;
				objZUPRGDTM_RELY_VIEW.COLUMN_SCALE = 0;
				objZUPRGDTM_RELY_VIEW.STATUS_CODE   = "ADDNEW,UPDATE";
				objZUPRGDTM_RELY_VIEW.Compulsory    = false;
				objZUPRGDTM_RELY_VIEW.Caption       = _Captions.Caption(this.UID_CODE,"lbl_RELY_VIEW");
				objZUPRGDTM_RELY_VIEW.COLSPAN       = 1;
				objZUPRGDTM_RELY_VIEW.ROWSPAN       = 1;
				objZUPRGDTM_RELY_VIEW.Index         = 1160;
				objZUPRGDTM_RELY_VIEW.NEW_LINE      = true;
				objZUPRGDTM_RELY_VIEW.NEW_CELL      = true;
				objZUPRGDTM_RELY_VIEW.LINE_REVEAL   = false;


				oXForm.AddObject(objZUPRGDTM_RELY_VIEW);
				oWindow.Components.Add(objZUPRGDTM_RELY_VIEW);
				


#endregion //ZUPRGDTM_RELY_VIEW


#region ZUPRGDTM_NEW_LINE
				objZUPRGDTM_NEW_LINE.Name          = "Txt_ZUPRGDTM_NEW_LINE";
				objZUPRGDTM_NEW_LINE.OnBlurEvents  = "";
				objZUPRGDTM_NEW_LINE.Length        = 0;
				objZUPRGDTM_NEW_LINE.Height        = 0;
				objZUPRGDTM_NEW_LINE.COLUMN_SCALE = 0;
				objZUPRGDTM_NEW_LINE.STATUS_CODE   = "ADDNEW,UPDATE";
				objZUPRGDTM_NEW_LINE.Compulsory    = false;
				objZUPRGDTM_NEW_LINE.Caption       = _Captions.Caption(this.UID_CODE,"lbl_NEW_LINE");
				objZUPRGDTM_NEW_LINE.COLSPAN       = 1;
				objZUPRGDTM_NEW_LINE.ROWSPAN       = 1;
				objZUPRGDTM_NEW_LINE.Index         = 1170;
				objZUPRGDTM_NEW_LINE.NEW_LINE      = true;
				objZUPRGDTM_NEW_LINE.NEW_CELL      = true;
				objZUPRGDTM_NEW_LINE.LINE_REVEAL   = false;


				oXForm.AddObject(objZUPRGDTM_NEW_LINE);
				oWindow.Components.Add(objZUPRGDTM_NEW_LINE);
				


#endregion //ZUPRGDTM_NEW_LINE


#region ZUPRGDTM_NEW_CELL
				objZUPRGDTM_NEW_CELL.Name          = "Txt_ZUPRGDTM_NEW_CELL";
				objZUPRGDTM_NEW_CELL.OnBlurEvents  = "";
				objZUPRGDTM_NEW_CELL.Length        = 0;
				objZUPRGDTM_NEW_CELL.Height        = 0;
				objZUPRGDTM_NEW_CELL.COLUMN_SCALE = 0;
				objZUPRGDTM_NEW_CELL.STATUS_CODE   = "ADDNEW,UPDATE";
				objZUPRGDTM_NEW_CELL.Compulsory    = false;
				objZUPRGDTM_NEW_CELL.Caption       = _Captions.Caption(this.UID_CODE,"lbl_NEW_CELL");
				objZUPRGDTM_NEW_CELL.COLSPAN       = 1;
				objZUPRGDTM_NEW_CELL.ROWSPAN       = 1;
				objZUPRGDTM_NEW_CELL.Index         = 1180;
				objZUPRGDTM_NEW_CELL.NEW_LINE      = false;
				objZUPRGDTM_NEW_CELL.NEW_CELL      = true;
				objZUPRGDTM_NEW_CELL.LINE_REVEAL   = false;


				oXForm.AddObject(objZUPRGDTM_NEW_CELL);
				oWindow.Components.Add(objZUPRGDTM_NEW_CELL);
				


#endregion //ZUPRGDTM_NEW_CELL


#region ZUPRGDTM_ROWS_SPAN
				objZUPRGDTM_ROWS_SPAN.Name          = "Txt_ZUPRGDTM_ROWS_SPAN";
				objZUPRGDTM_ROWS_SPAN.OnBlurEvents  = "";
				objZUPRGDTM_ROWS_SPAN.Length        = 18;
				objZUPRGDTM_ROWS_SPAN.Height        = 0;
				objZUPRGDTM_ROWS_SPAN.COLUMN_SCALE = 0;
				objZUPRGDTM_ROWS_SPAN.STATUS_CODE   = "ADDNEW,UPDATE";
				objZUPRGDTM_ROWS_SPAN.Compulsory    = false;
				objZUPRGDTM_ROWS_SPAN.Caption       = _Captions.Caption(this.UID_CODE,"lbl_ROWS_SPAN");
				objZUPRGDTM_ROWS_SPAN.COLSPAN       = 1;
				objZUPRGDTM_ROWS_SPAN.ROWSPAN       = 1;
				objZUPRGDTM_ROWS_SPAN.Index         = 1190;
				objZUPRGDTM_ROWS_SPAN.NEW_LINE      = true;
				objZUPRGDTM_ROWS_SPAN.NEW_CELL      = true;
				objZUPRGDTM_ROWS_SPAN.LINE_REVEAL   = false;


				oXForm.AddObject(objZUPRGDTM_ROWS_SPAN);
				oWindow.Components.Add(objZUPRGDTM_ROWS_SPAN);
				


#endregion //ZUPRGDTM_ROWS_SPAN


#region ZUPRGDTM_COLS_SPAN
				objZUPRGDTM_COLS_SPAN.Name          = "Txt_ZUPRGDTM_COLS_SPAN";
				objZUPRGDTM_COLS_SPAN.OnBlurEvents  = "";
				objZUPRGDTM_COLS_SPAN.Length        = 18;
				objZUPRGDTM_COLS_SPAN.Height        = 0;
				objZUPRGDTM_COLS_SPAN.COLUMN_SCALE = 0;
				objZUPRGDTM_COLS_SPAN.STATUS_CODE   = "ADDNEW,UPDATE";
				objZUPRGDTM_COLS_SPAN.Compulsory    = false;
				objZUPRGDTM_COLS_SPAN.Caption       = _Captions.Caption(this.UID_CODE,"lbl_COLS_SPAN");
				objZUPRGDTM_COLS_SPAN.COLSPAN       = 1;
				objZUPRGDTM_COLS_SPAN.ROWSPAN       = 1;
				objZUPRGDTM_COLS_SPAN.Index         = 1200;
				objZUPRGDTM_COLS_SPAN.NEW_LINE      = false;
				objZUPRGDTM_COLS_SPAN.NEW_CELL      = true;
				objZUPRGDTM_COLS_SPAN.LINE_REVEAL   = false;


				oXForm.AddObject(objZUPRGDTM_COLS_SPAN);
				oWindow.Components.Add(objZUPRGDTM_COLS_SPAN);
				


#endregion //ZUPRGDTM_COLS_SPAN


#region ZUPRGDTM_ACTIVE_BIT
				objZUPRGDTM_ACTIVE_BIT.Name          = "Txt_ZUPRGDTM_ACTIVE_BIT";
				objZUPRGDTM_ACTIVE_BIT.OnBlurEvents  = "";
				objZUPRGDTM_ACTIVE_BIT.Length        = 0;
				objZUPRGDTM_ACTIVE_BIT.Height        = 0;
				objZUPRGDTM_ACTIVE_BIT.COLUMN_SCALE = 0;
				objZUPRGDTM_ACTIVE_BIT.STATUS_CODE   = "ADDNEW,UPDATE";
				objZUPRGDTM_ACTIVE_BIT.Compulsory    = false;
				objZUPRGDTM_ACTIVE_BIT.Caption       = _Captions.Caption(this.UID_CODE,"lbl_ACTIVE_BIT");
				objZUPRGDTM_ACTIVE_BIT.COLSPAN       = 1;
				objZUPRGDTM_ACTIVE_BIT.ROWSPAN       = 1;
				objZUPRGDTM_ACTIVE_BIT.Index         = 1210;
				objZUPRGDTM_ACTIVE_BIT.NEW_LINE      = true;
				objZUPRGDTM_ACTIVE_BIT.NEW_CELL      = true;
				objZUPRGDTM_ACTIVE_BIT.LINE_REVEAL   = false;


				oXForm.AddObject(objZUPRGDTM_ACTIVE_BIT);
				oWindow.Components.Add(objZUPRGDTM_ACTIVE_BIT);
				


#endregion //ZUPRGDTM_ACTIVE_BIT


#region ZUPRGDTM_LINE_REVEAL
				objZUPRGDTM_LINE_REVEAL.Name          = "Txt_ZUPRGDTM_LINE_REVEAL";
				objZUPRGDTM_LINE_REVEAL.OnBlurEvents  = "";
				objZUPRGDTM_LINE_REVEAL.Length        = 0;
				objZUPRGDTM_LINE_REVEAL.Height        = 0;
				objZUPRGDTM_LINE_REVEAL.COLUMN_SCALE = 0;
				objZUPRGDTM_LINE_REVEAL.STATUS_CODE   = "ADDNEW,UPDATE";
				objZUPRGDTM_LINE_REVEAL.Compulsory    = false;
				objZUPRGDTM_LINE_REVEAL.Caption       = _Captions.Caption(this.UID_CODE,"lbl_LINE_REVEAL");
				objZUPRGDTM_LINE_REVEAL.COLSPAN       = 1;
				objZUPRGDTM_LINE_REVEAL.ROWSPAN       = 1;
				objZUPRGDTM_LINE_REVEAL.Index         = 1220;
				objZUPRGDTM_LINE_REVEAL.NEW_LINE      = false;
				objZUPRGDTM_LINE_REVEAL.NEW_CELL      = true;
				objZUPRGDTM_LINE_REVEAL.LINE_REVEAL   = false;


				oXForm.AddObject(objZUPRGDTM_LINE_REVEAL);
				oWindow.Components.Add(objZUPRGDTM_LINE_REVEAL);
				


#endregion //ZUPRGDTM_LINE_REVEAL


			_ZZCDF.Process();

			foreach (VContexts oVContexts in _ZZCDF.ZZCDFS) 
			{
				AComponent oCDFElement;

				if (oVContexts.getValue("CDF_TP_CODE")=="D")
				{
					oCDFElement=new WebDateBox();
				}else if (oVContexts.getValue("CDF_CODE")=="L")
				{
					oCDFElement=new WebCheckBox();
				}else if (oVContexts.getValue("CDF_CODE")=="N")
				{
					oCDFElement=new WebFloatBox();
				}else{
					oCDFElement=new WebTextBox();
				}

				oCDFElement.Name          = "Txt_CDF_"+oVContexts.getValue("CDF_CODE");
				oCDFElement.Length        = oVContexts.getInteger("CDF_LENGTH");
				oCDFElement.Height        = 1;
				oCDFElement.COLUMN_SCALE = oVContexts.getInteger("COLUMN_SCALE");
				oCDFElement.STATUS_CODE   = oVContexts.getValue("STATUS_CODE");
				oCDFElement.Compulsory    = !oVContexts.getBoolean("COLUMN_NULLABLE");

				if (oVContexts.getValue("LABEL_ID")!="")
				{
					oCDFElement.Caption     =_Captions.Caption(this.UID_CODE,oVContexts.getValue("LABEL_ID"));
				}else{
					oCDFElement.Caption     =oVContexts.getValue("CDF_NAME01");
				}
				oCDFElement.COLSPAN      = 1;
				oCDFElement.ROWSPAN      = 1;
				oCDFElement.Index        = oVContexts.getInteger("ORDINAL");
				oCDFElement.NEW_LINE     = true;
				oCDFElement.NEW_CELL     = true;
				oCDFElement.LINE_REVEAL  = false;

				_ZZCDFElect.Add(oCDFElement);
				oXForm.AddObject(oCDFElement);
				oWindow.Components.Add(oCDFElement);

			}


#endregion

				if (_DocsPermission.AccessRight(this.UID_CODE,this.ZZLOGON_ID,"SECURITY_CODE")==true)
				{
#region SECURITY_CODE


							objZUPRGDTM_USECURITY_CODE1.NEW_LINE    =true;
						objZUPRGDTM_USECURITY_CODE1.Name    = "Txt_ZUPRGDTM_USECURITY_CODE1";
						objZUPRGDTM_USECURITY_CODE1.Caption = _Captions.Caption(this.UID_CODE,"lbl_USECURITY_CODE1");
						oXForm.AuthObject(objZUPRGDTM_USECURITY_CODE1);

											objZUPRGDTM_USECURITY_CODE2.Name    = "Txt_ZUPRGDTM_USECURITY_CODE2";
						objZUPRGDTM_USECURITY_CODE2.Caption = _Captions.Caption(this.UID_CODE,"lbl_USECURITY_CODE2");
						oXForm.AuthObject(objZUPRGDTM_USECURITY_CODE2);

												objZUPRGDTM_USECURITY_CODE3.NEW_LINE    =true;
						objZUPRGDTM_USECURITY_CODE3.Name    = "Txt_ZUPRGDTM_USECURITY_CODE3";
						objZUPRGDTM_USECURITY_CODE3.Caption = _Captions.Caption(this.UID_CODE,"lbl_USECURITY_CODE3");
						oXForm.AuthObject(objZUPRGDTM_USECURITY_CODE3);

											objZUPRGDTM_USECURITY_CODE4.Name    = "Txt_ZUPRGDTM_USECURITY_CODE4";
						objZUPRGDTM_USECURITY_CODE4.Caption = _Captions.Caption(this.UID_CODE,"lbl_USECURITY_CODE4");
						oXForm.AuthObject(objZUPRGDTM_USECURITY_CODE4);

												objZUPRGDTM_USECURITY_CODE5.NEW_LINE    =true;
						objZUPRGDTM_USECURITY_CODE5.Name    = "Txt_ZUPRGDTM_USECURITY_CODE5";
						objZUPRGDTM_USECURITY_CODE5.Caption = _Captions.Caption(this.UID_CODE,"lbl_USECURITY_CODE5");
						oXForm.AuthObject(objZUPRGDTM_USECURITY_CODE5);

											objZUPRGDTM_USECURITY_CODE6.Name    = "Txt_ZUPRGDTM_USECURITY_CODE6";
						objZUPRGDTM_USECURITY_CODE6.Caption = _Captions.Caption(this.UID_CODE,"lbl_USECURITY_CODE6");
						oXForm.AuthObject(objZUPRGDTM_USECURITY_CODE6);

					#region USECURITY_RIGHT

					objZUPRGDTM_USECURITY_RIGHT.NEW_LINE = true;
					objZUPRGDTM_USECURITY_RIGHT.Name     = "Txt_ZUPRGDTM_USECURITY_RIGHT";
					objZUPRGDTM_USECURITY_RIGHT.Caption  = _Captions.Caption(this.UID_CODE,"lbl_USECURITY_RIGHT");
					oXForm.AuthObject(objZUPRGDTM_USECURITY_RIGHT);

#endregion

#region USTAGE_CODE

					objZUPRGDTM_USTAGE_CODE.NEW_LINE = false;
					objZUPRGDTM_USTAGE_CODE.Name     = "Txt_ZUPRGDTM_USTAGE_CODE";
					objZUPRGDTM_USTAGE_CODE.Caption  = _Captions.Caption(this.UID_CODE,"lbl_USTAGE_CODE");
					oXForm.AuthObject(objZUPRGDTM_USTAGE_CODE);

#endregion

#region ZADD_DATE

					objZUPRGDTM_UZADD_DATE.NEW_LINE = true;
					objZUPRGDTM_UZADD_DATE.Name     = "Txt_ZUPRGDTM_UZADD_DATE";
					objZUPRGDTM_UZADD_DATE.Caption  = _Captions.Caption(this.UID_CODE,"lbl_UZADD_DATE");
					oXForm.AuthObject(objZUPRGDTM_UZADD_DATE);

#endregion

#region ZADD_USER

					objZUPRGDTM_UZADD_USER.Name    = "Txt_ZUPRGDTM_UZADD_USER";
					objZUPRGDTM_UZADD_USER.Caption = _Captions.Caption(this.UID_CODE,"lbl_UZADD_USER");
					oXForm.AuthObject(objZUPRGDTM_UZADD_USER);

#endregion

#region ZCHG_DATE
					objZUPRGDTM_UZCHG_DATE.NEW_LINE = true;
					objZUPRGDTM_UZCHG_DATE.Name     = "Txt_ZUPRGDTM_UZCHG_DATE";
					objZUPRGDTM_UZCHG_DATE.Caption  = _Captions.Caption(this.UID_CODE,"lbl_UZCHG_DATE");
					oXForm.AuthObject(objZUPRGDTM_UZCHG_DATE);

#endregion

#region ZCHG_USER
					objZUPRGDTM_UZCHG_USER.Name    = "Txt_ZUPRGDTM_UZCHG_USER";
					objZUPRGDTM_UZCHG_USER.Caption = _Captions.Caption(this.UID_CODE,"lbl_UZCHG_USER");
					oXForm.AuthObject(objZUPRGDTM_UZCHG_USER);
#endregion
				}

#endregion

#region UXDIR_CODE
			objDATA_VFS_UXDIR_CODE.Name        = "Txt_DATA_VFS_UXDIR_CODE";
			objDATA_VFS_UXDIR_CODE.Caption     = _Captions.Caption(this.UID_CODE,"lbl_UXDIR_CODE");
			objDATA_VFS_UXDIR_CODE.NEW_CELL    = true;
			objDATA_VFS_UXDIR_CODE.NEW_LINE    = true;
			objDATA_VFS_UXDIR_CODE.Index       = 102002;
			objDATA_VFS_UXDIR_CODE.STATUS_CODE = "HIDDEN";

			oXForm.AddObject(objDATA_VFS_UXDIR_CODE);
			oWindow.Components.Add(objDATA_VFS_UXDIR_CODE);


#endregion

#region XUID_CODE
			objZUPRGDTM_XUID_CODE.NEW_LINE = true;
			objZUPRGDTM_XUID_CODE.Name     = "Txt_ZUPRGDTM_XUID_CODE";
			objZUPRGDTM_XUID_CODE.Caption  = _Captions.Caption(this.UID_CODE,"lbl_XUID_CODE");
			objZUPRGDTM_XUID_CODE.Text     = "UID02001B";
			oXForm.AuthObject(objZUPRGDTM_XUID_CODE);
#endregion

			_Captions.Caption(this.UID_CODE,"lbl_XUID_CODE");

			objXDepend.Process();

			oXForm.AddXDepend(objXDepend.Depends);

			oWindow.AddWebForm(oXForm);

			//if (this.ZZEventStatus=="ADDNEW")
			//{
			//}else if (this.ZZEventStatus=="UPDATE")
			//{
			//}

			//_WebCells.ZZMUKI_EDITION = MUKI_EDITION;
			_WebCells.Name= "QID02001B";
			_WebCells.UID_CODE    = this.UID_CODE;
			_WebCells.USQL_CODE   = "QID02001B";
			_WebCells.STATUS_CODE = "VIEW";
			_WebCells.DbName    = this.DbName;
			_WebCells.PageSize    = 15;
			_WebCells.ZZLOGON_LANG  = this.ZZLOGON_LANG;
			_WebCells.ZZLOGON_SSD = this.ZZLOGON_SSD;
			_WebCells.OnInit(objHttpContext);
				//_WebCells.WxfLook_Up =true;

				if (_WebCells.USQL_CODE!="")
				{
					oWindow.AddWxfPanel(_WebCells);
				}

			oWindow.DbName = this.DbName;
			oWindow.OnInit(objHttpContext);
		}

		public void Render(HtmlTextWriter objTextWriter)
		{

				//objWebPanels.setValue("UID02001B","view_status",_WebCells.VIEW_STATUS);
			objWebPanels["UID02001B","stage"]=this.ZZVIEW_STAGEU_CODE;

#region Toolbar

			dbToolbar objdbToolbar   = new dbToolbar();
			objdbToolbar.BTNS_CODE   = "BASIC;";
			objdbToolbar.UID_CODE    = this.UID_CODE;
			objdbToolbar.Trans       = this.Trans;
			objdbToolbar.DATA_STATUS_CODE = _UID02001BEntity.DATA_STATUS_CODE;
			objdbToolbar.ZZLOGON_LANG  = this.ZZLOGON_LANG;
			objdbToolbar.ZZLOGON_SSD   = this.ZZLOGON_SSD;


			ZZBTNS oZZBTNS         = new ZZBTNS();
			oZZBTNS.BTNS_CODE      = "UID02001B;Basic_VFS;BASIC_Actions";
			oZZBTNS.UID_CODE       = this.UID_CODE;
			oZZBTNS.BTN_CLASS_CODE = "FUNS";
			oZZBTNS.Trans          = this.Trans;
			oZZBTNS.ODTP_STATUS_CODE = objdbToolbar.ODTP_STATUS_CODE;
			oZZBTNS.DATA_STATUS_CODE = _UID02001BEntity.DATA_STATUS_CODE;
			oZZBTNS.ZZLOGON_LANG   = this.ZZLOGON_LANG;
			oZZBTNS.ZZLOGON_SSD    = this.ZZLOGON_SSD;
			oZZBTNS.Process();

			ZZTrace.Debug(ZFILE_NAME,"oZZBTNS.BTNS.Count=["+oZZBTNS.BTNS.Count+"]");

			objdbToolbar.ActionsBTNS=oZZBTNS.BTNS;

			ZZBTNS oPRINTS           = new ZZBTNS();
			oPRINTS.BTNS_CODE        = "UID02001B;BASIC_Print";
			oPRINTS.UID_CODE         = this.UID_CODE;
			oPRINTS.BTN_CLASS_CODE   = "PRINT";
			oPRINTS.VIEW_STAGEU_CODE = this.ZZVIEW_STAGEU_CODE;
			oPRINTS.Trans            = this.Trans;
			oPRINTS.ODTP_STATUS_CODE = objdbToolbar.ODTP_STATUS_CODE;
			oPRINTS.DATA_STATUS_CODE = _UID02001BEntity.DATA_STATUS_CODE;
			oPRINTS.ZZLOGON_LANG  = this.ZZLOGON_LANG;
			oPRINTS.ZZLOGON_SSD = this.ZZLOGON_SSD;
			oPRINTS.Process();

			objdbToolbar.PrintBTNS=oPRINTS.BTNS;

			objdbToolbar.Process();
			
			objWebBTNS= objdbToolbar.XWebBTNS;
			oWindow.AddToolBar(objWebBTNS);
			oWindow.BTNS = objdbToolbar.BTNS;
#endregion

			objZUPRGDTM_USTAGE_CODE.Text=this.ZZVIEW_STAGEU_CODE;


			_STATUS_DATA["ZZVIEW_MODE_CODE"]   = this.ZZVIEW_MODE_CODE;
			_STATUS_DATA["ZZVIEW_STATUS_CODE"] = this.ZZVIEW_STATUS_CODE;
			_STATUS_DATA["ZZVIEW_STAGEU_CODE"] = this.ZZVIEW_STAGEU_CODE;

			oWindow.VIEW_MODE_CODE    = this.ZZVIEW_MODE_CODE;
			oWindow.VIEW_STATUS_CODE  = this.ZZVIEW_STATUS_CODE;
			oWindow.VIEW_STAGEU_CODE  = this.ZZVIEW_STAGEU_CODE;

			
			_WebCells.ZZLOGON_LANG  = this.ZZLOGON_LANG;
			_WebCells.STATUS_CODE   = "VIEW";
			_WebCells.WXFLite       = this.Entity.Wxf;
			_WebCells.OperationMode = "EDIT";
			_WebCells.ZZLOGON_ID    = this.ZZLOGON_ID;
			_WebCells.Trans         = this.Trans;
			_WebCells.Process();

			oWindow.WindowsStatus = _STATUS_DATA;
			oWindow.UID_CODE      = "UID02001B";
			oWindow.Template      = "";
			oWindow.APP_PATH      = this.APP_PATH;
			ZZTrace.Debug(ZFILE_NAME,this.APP_PATH+"System\\templates\\");

			if (File.Exists(this.APP_PATH+"System\\templates\\"))
			{
				oWindow.Tmpl         = TmplManager.FromString(ZZGeneral.ReadStream(this.APP_PATH+"System\\templates\\").ToString());
			}else	if (File.Exists(this.APP_PATH+"System\\templates\\UID02001B.tpl"))
			{
				oWindow.Tmpl         = TmplManager.FromString(ZZGeneral.ReadStream(this.APP_PATH+"System\\templates\\UID02001B.tpl").ToString());
			}
			oWindow.Trans         = this.Trans;
			oWindow.Exceptions    = this.Exceptions;
			oWindow.Render(objTextWriter);


			//			Trans.Close();
		}

		private XForm             oXForm;             
		private WebPanels         objWebPanels    = new WebPanels();
		private ZZDocsPermission  _DocsPermission = new ZZDocsPermission();
		private	XStatus           _STATUS_DATA    = new XStatus();
		private	WebLookup         _WebLookup      = new WebLookup();
		private WebOption         _WebOption      = new WebOption();
		private Window            oWindow         = new Window();
		private WebBTNS           objWebBTNS      = new WebBTNS();
		private WebCells          _WebCells       = new WebCells();

			private WebCaption objZUPRGDTM_USECURITY_CODE1 =new WebCaption();
					private WebCaption objZUPRGDTM_USECURITY_CODE2 =new WebCaption();
					private WebCaption objZUPRGDTM_USECURITY_CODE3 =new WebCaption();
					private WebCaption objZUPRGDTM_USECURITY_CODE4 =new WebCaption();
					private WebCaption objZUPRGDTM_USECURITY_CODE5 =new WebCaption();
					private WebCaption objZUPRGDTM_USECURITY_CODE6 =new WebCaption();
		
		private WebCaption  objZUPRGDTM_UZADD_DATE      = new WebCaption();
		private WebCaption  objZUPRGDTM_UZADD_USER      = new WebCaption();
		private WebCaption  objZUPRGDTM_UZCHG_DATE      = new WebCaption();
		private WebCaption  objZUPRGDTM_UZCHG_USER      = new WebCaption();
		private WebCaption  objZUPRGDTM_USECURITY_RIGHT = new WebCaption();
		private WebCaption  objZUPRGDTM_USTAGE_CODE     = new WebCaption();
		private WebHideBox  objDATA_VFS_UXDIR_CODE           = new WebHideBox();
		private WebCaption  objZUPRGDTM_XUID_CODE       = new WebCaption();


		private List<AComponent>  _ZZCDFElect     = new List<AComponent>();
		public List<LogisticException> Exceptions = new List<LogisticException>();

		private string         _APP_PATH           = "";
		private string         _ATVT_CODE          = "";
		private string         UID_CODE            = "UID02001B";
		private string         _DbName             = "";
		private string         _DATA_STATUS_CODE   = "NONE";
		private string         _ZZLOGON_LANG       = "";
		private string         _ZZLOGON_SSD        = "";
		private string         _ZZEventOpts        = "";
		private string         _ZZVIEW_MODE_CODE = "";
		private string         _ZZVIEW_STATUS_CODE = "";
		private string         _ZZVIEW_STAGEU_CODE = "";
		private string         _ZZLOGON_MODE       = "";
		private string         _ZZEventStatus      = "";
		private string         _ZZEventStage       = "";
		private string         _ZZEventArgs        = "";
		private string         _ZZLOGON_ID         = "";
		private string         _lnk_RW_NO          = "-1";
		private string         _lnk_MODE           = "-1";
		
		private StreamContext _Trans;
		private Wxf            _Wxf                = new Wxf();
		private XConvert       _Convert            = new XConvert();
		private ZZCaptions     _Captions           = new ZZCaptions();
		private UID02001BE   _UID02001BEntity  = new UID02001BE();

		public UID02001BE Entity { get { return  _UID02001BEntity ; } set { _UID02001BEntity = value; }  }

		public string   lnk_MODE          { get { return _lnk_MODE;     } set { _lnk_MODE     = value; }  }
		public string   lnk_RW_NO          { get { return _lnk_RW_NO;     } set { _lnk_RW_NO     = value; }  }
		public string   ZZLookup          { get { return _WebLookup.Text;     } set { _WebLookup.Text     = value; }  }
		public string   ZZWebOption       { get { return _WebOption.Text;     } set { _WebOption.Text     = value; }  }
		public Wxf      ZZWxf             { get { return _Wxf;                } set { _Wxf                = value; }  }
		public WebPanels ZZPanels         { get { return objWebPanels;        } set { objWebPanels        = value; }  }
		public WebCells CellsPanel        { get { return _WebCells;           } set { _WebCells           = value; }  }
		public string  DbName             { get { return _DbName;             } set { _DbName             = value; }  }
		public string  ZZLOGON_SSD        { get { return _ZZLOGON_SSD;        } set { _ZZLOGON_SSD        = value; }  }
		public string  ZZLOGON_ID         { get { return _ZZLOGON_ID;         } set { _ZZLOGON_ID         = value; }  }
		public string  ZZEventOpts        { get { return _ZZEventOpts;        } set { _ZZEventOpts        = value; }  }
		public string  ZZVIEW_MODE_CODE { get { return _ZZVIEW_MODE_CODE; } set { _ZZVIEW_MODE_CODE = value; }  }
		public string  ZZVIEW_STATUS_CODE { get { return _ZZVIEW_STATUS_CODE; } set { _ZZVIEW_STATUS_CODE = value; }  }
		public string  ZZVIEW_STAGEU_CODE { get { return _ZZVIEW_STAGEU_CODE; } set { _ZZVIEW_STAGEU_CODE = value; }  }
		public string  ZZLOGON_MODE       { get { return _ZZLOGON_MODE; } set { _ZZLOGON_MODE = value; }  }
		public string  ZZEventStatus      { get { return _ZZEventStatus;      } set { _ZZEventStatus      = value; }  }
		public string  ZZEventStage       { get { return _ZZEventStage;       } set { _ZZEventStage       = value; }  }
		public string  ZZEventArgs        { get { return _ZZEventArgs;        } set { _ZZEventArgs        = value; }  }
		public string  ZZLOGON_LANG       { get { return _ZZLOGON_LANG;       } set { _ZZLOGON_LANG       = value; }  }
		public string  ATVT_CODE          { get { return _ATVT_CODE;          } set { _ATVT_CODE          = value; }  }
		public string  DATA_STATUS_CODE   { get { return _DATA_STATUS_CODE;   } set { _DATA_STATUS_CODE   = value; }  }
		public string  APP_PATH           { get { return _APP_PATH;           } set { _APP_PATH           = value; }  }
		
		public StreamContext  Trans              { get { return _Trans;           } set { _Trans           = value; }  }

#region screen element


					private WebTextBox objZUPRGDTM_UID_CODE =new WebTextBox();

					private WebTextBox objZUPRGDTM_UID_DT =new WebTextBox();

					private WebDigitBox objZUPRGDTM_SERIAL_NO =new WebDigitBox();

					private WebTextBox objZUPRGDTM_TABLE_NAME =new WebTextBox();

					private WebTextBox objZUPRGDTM_COLUMN_NAME =new WebTextBox();

					private WebCheckBox objZUPRGDTM_COLUMN_NULLABLE =new WebCheckBox();

					private WebTextBox objZUPRGDTM_LABEL_ID =new WebTextBox();

					private WebTextBox objVARIABLE_UID_ENG_NAME =new WebTextBox();

					private WebTextBox objVARIABLE_UID_CHS_NAME =new WebTextBox();

					private WebTextBox objZUPRGDTM_BASE_COLUMN_NAME =new WebTextBox();

					private WebTextBox objZUPRGDTM_BASE_TABLE_NAME =new WebTextBox();

					private WebTextBox objZUPRGDTM_LNK_COLUMN_NAME =new WebTextBox();

					private WebTextBox objZUPRGDTM_OPT_CODE =new WebTextBox();

					private WebTextBox objZUPRGDTM_RELY_VERFY =new WebTextBox();

					private WebTextBox objZUPRGDTM_RELY_DEFAULT =new WebTextBox();

					private WebTextBox objZUPRGDTM_RELY_VIEW =new WebTextBox();

					private WebCheckBox objZUPRGDTM_NEW_LINE =new WebCheckBox();

					private WebCheckBox objZUPRGDTM_NEW_CELL =new WebCheckBox();

					private WebDigitBox objZUPRGDTM_ROWS_SPAN =new WebDigitBox();

					private WebDigitBox objZUPRGDTM_COLS_SPAN =new WebDigitBox();

					private WebCheckBox objZUPRGDTM_ACTIVE_BIT =new WebCheckBox();

					private WebCheckBox objZUPRGDTM_LINE_REVEAL =new WebCheckBox();

#endregion
		const  string ZFILE_NAME   ="UID02001BV";
		const  string MUKI_EDITION ="MIN";

	}
}
